/**
 * 
 */
package net.toocruel.iqismart.dao;

import net.toocruel.iqismart.dao.base.BaseRepository;
import net.toocruel.iqismart.entity.common.Area;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author toocruel
 *
 */
@Repository
public interface AreaRepository extends BaseRepository<Area> {

	Area findById(Long id);
	List<Area> findAreaByParent(Long id);

    Area findByNameAndGrade(String name, int grade);
}
